//
//  NSObject+Common.h
//  TY_MotorRemoteControl
//
//  Created by 徐伟新 on 2023/11/16.
//  Copyright © 2023 zhongdaodianzi. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^AlertViewCallBack) (void);

NS_ASSUME_NONNULL_BEGIN

@interface NSObject (Common)
/**
 *  @brief  会隐藏的HUD
 */
- (void)showHUDWith:(NSString *)text showView:(UIView *)showView;

/**
 *  @brief  带菊花的HUD
 */
- (void)showLoadingHUD:(NSString *)text showView:(UIView *)showView;



- (void)delay:(CGFloat)duration action:(AlertViewCallBack)callBack;

- (void)hideHUD:(UIView *)view;

/// post通知
+ (void)postNoticationWithName:(NSString *)name withObject:(_Nullable id)objec;
@end

NS_ASSUME_NONNULL_END
